{% extends 'base.html' %}
{% block title %}
    登录
{% endblock %}
{% block content %}
    <main class="container bg-white p-3 rounded mt-3">
        <div class="mb-3">
            <div class="m-auto" style="max-width: 330px;">
                <h1>登录</h1>
                <form method="post" action="{% url 'auth:login' %}">
                    {% csrf_token %}
                    <div class="mb-3">
                        <label for="email" class="form-label">邮箱</label>
                        <input type="email" class="form-control" id="email" aria-describedby="emailHelp"
                               name="email" placeholder="邮箱">
                    </div>
                    <div class="mb-3">
                        <label for="password" class="form-label">密码</label>
                        <input type="password" class="form-control" id="password" name="password" placeholder="密码">
                    </div>
                    <div class="mb-3 form-check">
                        <input type="checkbox" class="form-check-input" id="remember" name="remember" value="1">
                        <label class="form-check-label" for="remember">记住我</label>
                    </div>
                    <button type="submit" class="btn btn-primary w-100">登录</button>

                </form>
            </div>
        </div>

    </main>
{% endblock %}